﻿using System;
using System.Collections.Generic;

namespace UTS_Subject_Enrolment_System.Model
{

    public enum Role
    {
        staff,
        student
    }

    public class User
    {
        public int ID { get; set; }
        public string Name { get; set; }
        public Role Role { get; set; }

        public User(int id, string name, Role role)
        { 
            ID = id;
            Name = name;
            Role = role;
        }

        public bool IsStudent()
        { 
            return Role == Role.student; 
        }

        public bool IsStaff()
        { 
            return Role == Role.staff; 
        }
    }

}
